import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
import * as echarts from 'echarts';
import request from '@/util/request.js'
import {loginUtil} from '@/Service/login.js'

request.defaults.headers.common['Authorization'] = 'Bearer ' + sessionStorage.getItem('token')
loginUtil.status.currentUserId = parseInt(sessionStorage.getItem('userId'))

Vue.use(ElementUI);
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false

new Vue({
    render: h => h(App),
    router
}).$mount('#app')